<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('总院入院申请')"/>
    <th:block th:include="include :: layout-latest-css"/>
</head>
<body class="gray-bg">
<div class="ui-layout-center">
    <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="user-form">
                    <div class="select-list">
                        <ul>
                            <li>
                                院区id：<input type="text" name="outPatientNo" id="outPatientNo"/>
                            </li>
                            <li>
                                总院门诊id：<input type="text" name="mzPatientId" id="mzPatientId"/>
                            </li>
                            <li>
                                姓名：<input type="text" name="patientName"/>
                            </li>
                            <li>
                                手机号：<input type="text" name="homeTel" width="20"/>
                            </li>
                            <li class="select-time">
                                <label style="width: 80px">就诊日期：</label>
                                <input type="text" class="time-input" name="beginDate" placeholder="开始时间"/>
                                <span>-</span>
                                <input type="text" class="time-input" name="endDate" placeholder="结束时间"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
</div>

<th:block th:include="include :: footer"/>
<th:block th:include="include :: layout-latest-js"/>
<script th:inline="javascript">
    var prefix = ctx + "pub/eleCard";

    $(function () {
		queryEleCard();
    });

    function queryEleCard() {
        var options = {
            url: prefix + "/list",
            // createUrl: prefix + "/add",
            // updateUrl: prefix + "/edit/{id}",
            // removeUrl: prefix + "/remove",
            // exportUrl: prefix + "/export",
            // importUrl: prefix + "/importData",
            // importTemplateUrl: prefix + "/importTemplate",
            // sortName: "createTime",
            // sortOrder: "desc",
            modalName: "总院入院申请信息",
            firstLoad: false,
            clickToSelect: true,
            singleSelect: true,
            columns: [{
                checkbox: true
            },
                {
                    field: 'outPatientNo',
                    title: '院区id',
                    // visible: false
                },
                {
                    field: 'mzPatientId',
                    title: '总院门诊id'
                },
                {
                    field: 'patientName',
                    title: '姓名',
                },
                {
                    field: 'age',
                    title: '年龄'
                },
                {
                    field: 'sex',
                    title: '性别',
                },
                {
                    field: 'birthday',
                    title: '生日'
                },
                {
                    field: 'socialNo',
                    title: '身份证号'
                },
                {
                    field: 'diagName',
                    title: '诊断'
                },
                {
                    field: 'admissionDept',
                    title: '入院科室'
                },
                {
                    field: 'deposit',
                    title: '预交金'
                },
                {
                    field: 'mzDept',
                    title: '开单科室'
                },
                {
                    field: 'mzDoctorName',
                    title: '开单医生'
                },
                {
                    field: 'visitDate',
                    title: '就诊时间'
                }]
        };
        $.table.init(options);
    }

</script>
</body>
</html>